package com.hongyi.system.domain.dto;

import com.hongyi.system.domain.SysUserNotice;
import com.hongyi.common.mybatis.domain.BaseEntity;
import com.hongyi.common.framework.validate.AddGroup;
import com.hongyi.common.framework.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 用户消息关联业务对象 system_user_notice
 *
 * @author DingHao
 * @date 2025-01-24 13:13:15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysUserNotice.class, reverseConvertGenerate = false)
public class SysUserNoticeDto extends BaseEntity {

    /**
     * ID
     */
    private Long id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 公告id
     */
    @NotNull(message = "公告id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long noticeId;

    /**
     * 是否已读
     */
    @NotBlank(message = "是否已读不能为空", groups = { AddGroup.class, EditGroup.class })
    private String readStatus;

    /**
     * 类型（1通知 2公告）
     */
    private String noticeType;

    /**
     * 阅读时间
     */
    private Date readTime;


}
